package com.ajie.mapper;

import com.ajie.entity.LookLikeFavourite;
import com.ajie.entity.Moment;
import com.ajie.entity.New;
import com.ajie.utils.Result;
import com.ajie.vo.MomentImage;
import com.ajie.vo.MomentVo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MomentMapper {
    
    
    void insert(Moment moment);
    
    List<MomentVo> findPage(String queryString);
    
    void insertImage(@Param("momentId") Long momentId,@Param("picPath")  String picPath);
    
    List<MomentImage> findPic(Long momentId);
    
    List<MomentVo> getAll();
    

    
    void update(Moment moment);
    
    Page<MomentVo> findPageByCreatedId(Long createdId);
    
    Page<MomentVo> findPageCheck(String queryString);
    
    void updateStatus(Long id);
    
    void delete(Long id);
}
